<div class="users view">
    <h2 class="left"><?php __('Usuario'); ?></h2>
    <div class="actions specific">
        <ul>
            <li><?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
            <li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Esta seguro que desea eliminar al usuario # %s?', true), $user['User']['username'])); ?></li>
        </ul>
    </div>
    <br />
    <br />
    <br />
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt<?php if ($i % 2 == 0)
            echo $class; ?>><?php __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $user['User']['id']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Nombre'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $user['User']['first_name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Apellido'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $user['User']['last_name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Nombre de Usuario'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $user['User']['username']; ?>
            &nbsp;
        </dd>
        <!--		<dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Contraseña'); ?></dt>
                <dd<?php if ($i++ % 2 == 0)
            echo $class; ?>>
        <?php echo $user['User']['password']; ?>
                        &nbsp;
                </dd>-->
        <dt<?php if ($i % 2 == 0)
            echo $class; ?>><?php __('Nivel'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php
                $aux = array('Admin', 'Cerrajeria', 'Codificadas');
                echo $aux[$user['User']['level'] - 1];
                ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Estado'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $user['User']['status']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Creado'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php
                $creado = date('d/m/Y', strtotime($user['User']['created']));
                echo $creado;
                ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Ultima entrada'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php
                $ultimo_log = date('d/m/Y H:i:s', strtotime($user['User']['last_login']));
                echo $ultimo_log;
                ?>
            &nbsp;
        </dd>
    </dl>
</div>
